bafb890b80dfbe7da8af42f408fbecc2dfdc9a67,pippo-core/src/main/java/ro/pippo/core/Response.java,Response,resource,#InputStream#,880
Before Change
IoUtils.copy(input, httpServletResponse.getOutputStream());
// flushing the buffer forces chunked-encoding
httpServletResponse.flushBuffer();
} catch (Exception e) {
throw new PippoRuntimeException(e);
} finally {
After Change
// by calling httpServletResponse.getOutputStream() we are committing the response
IoUtils.copy(input, httpServletResponse.getOutputStream());
if (chunked) {
// flushing the buffer forces chunked-encoding
httpServletResponse.flushBuffer();
}
} catch (Exception e) {
throw new PippoRuntimeException(e);